<template>
  <div class="component-b">
    <h3>组件 B</h3>
    <p>这是组件B的内容区域</p>
    <p>当前计数器: {{ count }}</p>
    <button @click="count++">增加</button>
  </div>
</template>

<script setup>
import { ref } from 'vue'
const count = ref(0)
</script>

<style scoped>
.component-b {
  padding: 20px;
  background-color: #e8f5e9;
  border-radius: 8px;
  margin-top: 15px;
}
</style>